﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class DangkyKhControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnRegister_Click(object sender, EventArgs e)
    {
        KhachHang kh = new KhachHang();
        QLKH ql = new QLKH();
        kh.Makh = txtId.Text;
        kh.Matkhau = txtPass.Text;
        kh.Hoten = txtHoten.Text;
        kh.Diachi = txtDiachi.Text;
        kh.Sodt = decimal.Parse(txtSodt.Text);
        ql.DangkyKH(kh);
    }
}